import java.util.Scanner;

public class Main1644 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a= sc.nextInt();
        int b= sc.nextInt();
        int x=a*a;
        int y=b*b;
        if (a>b){
            System.out.println(x);
        }else System.out.println(y);
        }
    }

